package com.aaa.service.impl;

import com.aaa.dao.ForderMapper;
import com.aaa.entity.F_order;
import com.aaa.entity.F_returns;
import com.aaa.entity.Inventory;
import com.aaa.service.ForderServiceDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ForderServiceimpl implements ForderServiceDao {
    @Resource
    ForderMapper forderDao;

    public List<F_order> find(Integer pagenum, Integer pagesize, Integer parcelid) {
        return forderDao.find(pagenum, pagesize, parcelid);
    }

    public int add(F_order f_order) {
        return forderDao.add(f_order);
    }

    public int delete(Integer id) {
        return forderDao.delete(id);
    }

    public int deliver(Integer id) {
        return forderDao.deliver(id);
    }

    public int take(Integer id) {
        return forderDao.take(id);
    }

    @Override
    public int salesreturn(Integer id) {
        return forderDao.salesreturn(id);
    }

    @Override
    public List<F_order> findpage(Integer pageSize, Integer pageNum) {
        return forderDao.findpage(pageSize, pageNum);
    }

    @Override
    public Integer findpagecount() {
        return forderDao.findpagecount();
    }


    @Override
    public List<F_order> findpage1() {
        return forderDao.findpage1();
    }


    @Override
    public List<F_order> findpage2(Integer pageSize, Integer pageNum) {
        return forderDao.findpage2(pageSize, pageNum);
    }

    @Override
    public Integer findcount2() {
        return forderDao.findcount2();
    }

    @Override
    public List<F_order> select() {
        return forderDao.select();
    }

    @Override
    public Integer upd(Integer id) {
        return forderDao.upd(id);
    }

    @Override
    public Integer updatenum(Inventory inventory) {
        return forderDao.updatenum(inventory);
    }

    @Override
    public List<F_returns> findreturn(Integer pageSize, Integer pageNum) {
        return forderDao.findreturn(pageSize, pageNum);
    }

    @Override
    public Integer returncount() {
        return forderDao.returncount();
    }

    @Override
    public Integer returnupd(Integer user, Integer id) {
        return forderDao.returnupd(user, id);
    }

    @Override
    public List<F_returns> findreturns() {
        return forderDao.findreturns();
    }
}
